package com.codingman.springbootdemo3;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class EmployeeController {
	@GetMapping("/employee/{id}")
	public Employee getEmployee(@PathVariable Integer id) {
		return new Employee(101, "Ann", 100.00);
	}
}
